package wafa.modelDocumentRest;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "Document")
public class Document implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3536734431147752089L;
	private Content content = new Content();
	private List<Content> Attachments = new ArrayList<Content>();
	private Set<Index<?>> indexes = new HashSet<Index<?>>();
	private String DocumentId;
	private Family family = new Family();

	/**
	 * 
	 */
	public Document() {
		super();
	}

	/**
	 * @return the content
	 */
	public Content getContent() {
		return content;
	}

	/**
	 * @param content
	 *            the content to set
	 */
	public void setContent(Content content) {
		this.content = content;
	}

	/**
	 * @return the attachments
	 */
	public List<Content> getAttachments() {
		return Attachments;
	}

	/**
	 * @param attachments
	 *            the attachments to set
	 */
	public void setAttachments(List<Content> attachments) {
		Attachments = attachments;
	}

	/**
	 * @return the indexes
	 */
	public Set<Index<?>> getIndexes() {
		return indexes;
	}

	/**
	 * @param indexes
	 *            the indexes to set
	 */
	public void setIndexes(Set<Index<?>> indexes) {
		this.indexes = indexes;
	}

	/**
	 * @return the documentId
	 */
	public String getDocumentId() {
		return DocumentId;
	}

	/**
	 * @param documentId
	 *            the documentId to set
	 */
	public void setDocumentId(String documentId) {
		DocumentId = documentId;
	}

	/**
	 * @return the family
	 */
	public Family getFamily() {
		return family;
	}

	/**
	 * @param family
	 *            the family to set
	 */
	public void setFamily(Family family) {
		this.family = family;
	}

	/**
	 * @return the serialversionuid
	 */
	public static long getSerialversionuid() {
		return serialVersionUID;
	}



}
